package com.example.demo.vo;

import java.util.Objects;

/**
 * 用户评分
 */
public class UserPointVO {
    /**
     * 用户名
     */
    private String username;
    /**
     * 手机号
     */
    private String phone;

    public UserPointVO(String username,String phone){
        this.username = username;
        this.phone = phone;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Override
    public boolean equals(Object o) {
        if (o == null || getClass() != o.getClass()) return false;
        UserPointVO that = (UserPointVO) o;
        return Objects.equals(phone, that.phone);
    }

    @Override
    public int hashCode() {
        return Objects.hashCode(phone);
    }
}
